<script module>
	export function foo() {
		return 42;
	}
</script>

<button on:click={foo}>foo</button>
